package cn.itcast.service;

import cn.itcast.domain.Accounts;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AccountService {

    List<Accounts> findAll()throws Exception;

    PageInfo<Accounts> pageQure(Integer pageNum,Integer pageSize)throws Exception;

    Accounts findById(int id)throws Exception;

    void add(Accounts accounts)throws Exception;

    void update(Accounts accounts)throws Exception;

    void delete(Integer id)throws Exception;
}
